package com.cloud.tsp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.api.domain.model.ModelName;
import com.cloud.api.domain.model.VehicleModel;
import com.cloud.api.domain.model.VehicleModelDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haohaibo
 * @since 2023-12-20
 */
public interface VehicleModelMapper extends BaseMapper<VehicleModel> {

    List<VehicleModelDto> selectModelTreeList(@Param("type") String type);

    List<VehicleModel> selectUrlListByEvId(@Param("id") String id);

    List<VehicleModel> selectUrlListByOilId(@Param("id") String id);

    ModelName selectParentNameById(String id);

    List<VehicleModel> getLastModelList();
}